From 484c14b7254e8d8936c05e3c28e332ea825c0155 Mon Sep 17 00:00:00 2001 From: Kai Huang Date: Wed, 2 Dec 2015 15:20:19 +0100 Subject: [PATCH] x86/vmx: enable PML by default Since PML series were merged (but disabled by default) we have conducted lots of PML tests (live migration, GUI display) and PML has been working fine, therefore turn it on by default. Document of PML command line is adjusted accordingly as well. Signed-off-by: Kai Huang Tested-by: Robert Hu Tested-by: Xudong Hao Reviewed-by: Andrew Cooper Tested-by: Andrew Cooper Acked-by: Kevin Tian --- docs/misc/xen-command-line.markdown | 2 +- xen/arch/x86/hvm/vmx/vmcs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index c103894e48..47d148a2b7 100644 --- a/docs/misc/xen-command-line.markdown +++ b/docs/misc/xen-command-line.markdown @@ -715,7 +715,7 @@ Controls EPT related features. > `pml` -> Default: `false` +> Default: `true` >> PML is a new hardware feature in Intel's Broadwell Server and further >> platforms which reduces hypervisor overhead of log-dirty mechanism by diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index 7a7896e716..dbf284d9e2 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -64,7 +64,7 @@ integer_param("ple_gap", ple_gap); static unsigned int __read_mostly ple_window = 4096; integer_param("ple_window", ple_window); -static bool_t __read_mostly opt_pml_enabled = 0; +static bool_t __read_mostly opt_pml_enabled = 1; static s8 __read_mostly opt_ept_ad = -1; /* -- 2.30.2